/*
 * NetRayt
 * Copyright (c) 2007-2008 Maciej Nabozny.
 *
 * NetRayt is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3 of the License, or
 * (at your option) any later version.
 *
 * NetRayt is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with NetRayt; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
*/

#ifndef _SERVER_H
#define _SERVER_H

#include <QtGui>
#include <QtNetwork>

#include "ui_server.h"

#include "conn_class/conn.h"

using namespace Ui;

/*
 * Główna klasa z okienkiem serwera
 */
class server: public QMainWindow {
	Q_OBJECT
	private:
		MainWindow ui;
		
		QTcpServer *srv;
		int port;
	public:
		server(QWidget *parent = 0, Qt::WFlags f = 0);
	public slots:
		void startServer();
		void startThread();
};

#endif

